package com.zxy.ziems.server.convert;

import com.zxy.ziems.server.domain.Agreement;
import com.zxy.ziems.server.dto.AgreementDto;
import com.zxy.ziems.server.vo.AgreementVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @description:
 * @auther: windrunner
 * @date 2022/9/1 18:45
 */
@Mapper
public interface AgreementConvert {

    AgreementConvert INSTANCE = Mappers.getMapper(AgreementConvert.class);

    Agreement agreementDtoToAgreement(AgreementDto agreementDto);

    List<AgreementVo> agreementListToAgreementVoList(List<Agreement> agreement);

}
